﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class VeBUS
    {
        public static List<Ve> Select_All()
        {
            try
            {
                return VeDAO.Select_All();
            }
            catch (Exception ex)
            {
                throw ex;
            }

        }

        public static List<Ve> Select_Ve_DatTruoc()
        {
            try
            {
                return VeDAO.Select_Ve_DatTruoc();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static bool Insert(Ve emp)
        {
            try
            {
                return VeDAO.Insert(emp);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static bool ThanhToan(String MaKH, String MaXe, String MaGhe, String MaTD, String Ngay)
        {
            try
            {
                return VeDAO.ThanhToan(MaKH, MaXe, MaGhe, MaTD, Ngay);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static bool Update(Ve ve_cu, Ve ve_moi)
        {
            try
            {
                return VeDAO.Update(ve_cu, ve_moi);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static bool Delete(String MaKH, String MaXe, String MaGhe, String MaTD, String Ngay)
        {
            try
            {
                return VeDAO.Delete(MaKH, MaXe, MaGhe, MaTD, Ngay);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
